package com.igeek.javase.inherit;

/**
 * @author chenmin
 * 2023/7/12 22:36
 * @description TODO
 */
public class Worker extends Person{

    public Worker(){
        super();
    }
    public Worker(String name, int age, char gender){
        super(name, age, gender);

    }




    //方法
    public void work(){
        System.out.println(this.getName()+"正在工作");
    }

}
